import request from '@/utils/request'


//查询列表
export function queryList(data) {
  return request({
    url: '/hndqyss/jtxxk/query_jtxxk',
    method: 'post',
    data
  })
}
//删除
export function batchDelete(data) {
  return request({
    url: '/hndqyss/dqy_mcxx/batchDelete?nsrsbhs=' + data,
    method: 'post'
  })
}

//模板下载
export function downloadTemplate(data) {
  return request({
    url: '/hndqyss/dqy_mcxx/download_template',
    method: 'post',
    headers: {
      "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
    },
    responseType: 'blob',
    data
  })
}

//名册上传
export function uploadTemplate(data) {
  return request({
    url: '/hndqyss/jtxxk/upload_jtxxk',
    method: 'post',
    data
  })
}


//查看文档List

export function queryDocList(data) {
  return request({
    url: '/hndqyss/dqy_mcxx/queryDocList',
    method: 'post',
    data
  })
}
export function queryDoc(data) {
  return request({
    url: '/hndqyss/dqy_mcxx/queryDoc',
    method: 'post',
    data
  })
}


//删除名册文档
export function deleteDoc(data) {
  return request({
    url: '/hndqyss/dqy_mcxx/deleteDoc',
    method: 'post',
    data
  })
}


//名册附件上传
export function upload_doc(data) {
  return request({
    url: '/hndqyss/dqy_mcxx/upload_doc',
    method: 'post',
    data
  })
}



//获取公司及注册信息
export function queryNsrDjxx(data) {
  return request({
    url: '/hndqyss/dqy_mcxx/queryNsrDjxx',
    method: 'post',
    data
  })
}
export function queryNsrDjxxKz(data) {
  return request({
    url: '/hndqyss/dqy_mcxx/queryNsrDjxxKz',
    method: 'post',
    data
  })
}

//名册修改
export function update(data) {
  return request({
    url: '/hndqyss/dqy_mcxx/update',
    method: 'post',
    data
  })
}


//集团信息库

export function query_jtxxk(data) {
  return request({
    url: '/hndqyss/jtxxk/query_jtxxk',
    method: 'post',
    data
  })
}

//删除集团信息库文档
export function delete_jtxxk(data) {
  return request({
    url: '/hndqyss/jtxxk/delete_jtxxk',
    method: 'post',
    data
  })
}


// 上传集团信息库文档
export function upload_jtxxk(data) {
  return request({
    url: '/hndqyss/jtxxk/upload_jtxxk',
    method: 'post',
    data
  })
}

// 查看集团信息库附件
export function query_jtxxka_att(data) {
  return request({
    url: '/hndqyss/jtxxk/query_jtxxka_att',
    method: 'post',
    data
  })
}



//查询行业信息库

export function query_hyxxk(data) {
  return request({
    url: '/hndqyss/hyxxk/query_hyxxk',
    method: 'post',
    data
  })
}
//查询行业信息库

export function delete_hyxxk(data) {
  return request({
    url: '/hndqyss/hyxxk/delete_hyxxk?ids='+data,
    method: 'post',
  })
}

//查询行业信息库附件 
export function query_hyxxk_att(data) {
  return request({
    url: '/hndqyss/hyxxk/query_hyxxk_att',
    method: 'post',
    data
  })
}


export function upload_hyxxk(data) {
  return request({
    url: '/hndqyss/hyxxk/upload_hyxxk',
    method: 'post',
    data
  })
}

//添加行业信息库

export function add_hyxxk(data) {
  return request({
    url: '/hndqyss/hyxxk/add_hyxxk',
    method: 'post',
    data
  })
}